package com.koron.order.patrol.mapper;

import com.koron.order.patrol.bean.po.PatrolEquipmentPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 巡视工单-巡视点设备从表(PatrolEquipment)表数据库访问层
 *
 * @author zhouj
 * @since 2021-10-26 15:25:42
 */
public interface PatrolEquipmentMapper {

    int insertOrUpdate(PatrolEquipmentPo patrolEquipment);

    int insertOrUpdateBatch(@Param("list") List<PatrolEquipmentPo> patrolEquipmentList);

    int insert(PatrolEquipmentPo patrolEquipment);

    int insertBatch(@Param("list") List<PatrolEquipmentPo> patrolEquipmentList);

    int update(PatrolEquipmentPo patrolEquipment);

    int deleteById(String id);

    PatrolEquipmentPo queryById(String id);

    List<PatrolEquipmentPo> queryByIds(@Param("ids") List<String> ids);

    List<PatrolEquipmentPo> queryList(PatrolEquipmentPo patrolEquipment);

    int deleteByPatrolPointIds(@Param("list") List<String> patrolPointIds);
}